<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbprodresEditDlg" widgetVar="PyfntbprodresEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbprodresTitle}">

            <h:form id="PyfntbprodresEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbprodresController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbprodresLabel_pyfntbprodresid}" for="pyfntbprodresid" />
                        <h:outputText id="pyfntbprodresid" value="#{pyfntbprodresController.selected.pyfntbprodresid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbprodresLabel_referencia}" for="referencia" />
                        <p:inputText id="referencia" value="#{pyfntbprodresController.selected.referencia}" title="#{myBundle.EditPyfntbprodresTitle_referencia}" required="true" requiredMessage="#{myBundle.EditPyfntbprodresRequiredMessage_referencia}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbprodresLabel_nombre}" for="nombre" />
                        <p:inputText id="nombre" value="#{pyfntbprodresController.selected.nombre}" title="#{myBundle.EditPyfntbprodresTitle_nombre}" required="true" requiredMessage="#{myBundle.EditPyfntbprodresRequiredMessage_nombre}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbprodresLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbprodresController.selected.observaciones}" title="#{myBundle.EditPyfntbprodresTitle_observaciones}" required="true" requiredMessage="#{myBundle.EditPyfntbprodresRequiredMessage_observaciones}"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbprodresController.save}" value="#{myBundle.Save}" update="display,:PyfntbprodresListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbprodresEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbprodresEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
